package Day04;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Scanner;
import java.util.Stack;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-09-08
 * Time: 17:28
 * To BE A Better Person-2020-3-2
 */

public class TestDemo {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[4];
        for (int i = 0; i < 4; i++) {
            arr[i] = sc.nextInt();
        }
        //A-B  B-C   A+B  B+C
        int a=(arr[0]+arr[2])/2;
        int b=arr[2]-a;
        int c=(arr[3]-arr[1])/2;
        System.out.print(a+" ");
        System.out.print(b+" ");
        System.out.print(c);

    }
}

